<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="../common/jspcommon.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>列表 - 爽客网</title>
<%@include file="../common/js.jsp" %>
<%@include file="../common/css.jsp" %>
<script src="js/search.js" type="text/javascript"></script>
<script src="js/search.js" type="text/javascript"></script>
<link href="css/list.css" type="text/css" rel="stylesheet" />
<link href="css/pager.css" type="text/css" rel="stylesheet" />
<style>
</style>
</head>
<body>
	<%@include file="../common/header.jsp"%>
	
	<div class="wrap">
    
    	<!-- search-box-->
    	<%-- <div class="w980 mg mt5">
        	<div class="list_s_box">
            	<!-- <span>自由自在</span> --><input type="text" class="tb" id="search_title" value="${title }"/><input type="button" class="search_btn" onclick="searchContent('${chType}');"/>
            </div>
        </div> --%>
        <!-- search-box--end-->
        
        <!-- list-content-->
        <div class="w980 mg box_mg">
        	<div class="list_wrap clearfix">
            
            	<!-- left-box-->
            	<div class="left_box list_left">
                
                	<!-- search-->
                	 <div class="condition clearfix">
                        <c:if test="${empty channel}">
	                        <div class="fl last">
	                        	<i class=" global1_bg s_icon1"></i>
	                            <input type="text" class="tb1" id="search_title" value="${title }"/>
	                            <input type="button" class="global1_bg s1_btn" value="搜索" onclick="searchContent('${chType}');"/>
	                        </div>
                        </c:if>
                    </div>
                    <!-- search-box-->
                    
                    <!-- list -->
                    <ul class="list_box_s1">
                    	<c:forEach items="${pageModel.list }" var="c" varStatus="s">
                        	<li class="clearfix">
                        	<div class="price_box">
                            	<c:if test="${not empty c.product }"><strong class="block">¥<i>${c.product.priceMin }</i></strong></c:if>
                            	<c:if test="${not empty c.hotel && c.hotel.minPriceRound>0}"><strong class="block">¥<i>${c.hotel.minPriceRound }</i></strong></c:if>
                            	<c:if test="${not empty c.ticket }"><strong class="block">¥<i>${c.ticket.priceMin }</i></strong></c:if>
                            	<c:if test="${not empty c.scenic && c.scenic.priceMin>0}"><strong class="block">¥<i>${c.scenic.priceMin }</i></strong></c:if>
                            	<c:if test="${not empty c.discuss && empty c.ticket}">
	                                <div class="rel_info">
	                                	<c:if test="${not empty c.hotel }"><span class="star_s3 star_s3_${c.hotel.star }"></span></c:if>
	                                	<span class="g_star_bg g_star_s1 stars_r_s${c.discuss.overall }"></span>
	                                    <a href="${c.hyperlink }" target="_blank" class="dp_nums">${c.discuss.comments }条点评</a>
	                                    <a href="${c.hyperlink }" target="_blank" class="global1_bg check">查看详情</a>
	                                </div>
                                </c:if>
                            </div>
                            <div class="pic_box">
                            	<a href="${c.hyperlink }" target="_blank"><img src="${c.picture }" class="block"/></a>
                            </div>
                            <div class="info_box">
                            	<a href="${c.hyperlink }" target="_blank" class="name">${c.title }</a>
                            	<c:if test="${not empty c.scenic }">
                            		<p>景点地址：<i>${c.scenic.address }</i></p>
                            		<p>景点主题：<i>${c.scenic.subject }</i></p>
                            	</c:if>
                                <div class="info">
                                	<p>${c.contentText }</p>
                                	<c:if test="${not empty c.hotel }"><p>酒店地址：<i>${c.hotel.address }</i></p></c:if>
                                </div>
                            </div>
                        </li>
                        </c:forEach>
                    </ul>
                    <!-- list--end-->
                    <c:if test="${pageModel.totalPage>1 }"><div id="page" class="h_page"></div></c:if>
                    
                </div>
                <!-- left-box--end-->
            	
                <!-- right-box-->    
                <%@include file="right.jsp" %>
                <!-- right-box--end-->
                  
            </div>
        </div>
        <!-- list-content--end-->
        
    </div>
	
	    <!-- foot-->
	    <%@include file="../common/footer.jsp" %>
	    <!-- foot--end-->
<script type="text/javascript">
$(function(){
	$("#page").pager({
    	pagenumber : '${pageModel.currentPage}',
    	pagecount : '${pageModel.totalPage}',
    	buttonClickCallback : function(page) {
    		searchContent("${chType}",page,"${channel}");
    	}
    });
	$("#s_city").val('${city}');
	$("#price_range").val('${price}');
	$("#hotel_search_sort").val('${sort}');
});
</script>
</body>
</html>
